package com.itheima.edu.info.manager.system.factroy;

import com.itheima.edu.info.manager.system.controller.BaseStudentController;
import com.itheima.edu.info.manager.system.controller.ITeacherController;
import com.itheima.edu.info.manager.system.controller.OtherStudentController;
import com.itheima.edu.info.manager.system.controller.impl.TeacherControllerImpl;
import com.itheima.edu.info.manager.system.dao.BaseStudentDao;
import com.itheima.edu.info.manager.system.dao.OtherStudentDao;
import com.itheima.edu.info.manager.system.dao.StudentDao;
import com.itheima.edu.info.manager.system.service.ITeacherService;
import com.itheima.edu.info.manager.system.service.TeacherService;

/**
 * 学生相关的工厂
 *
 *
 */
public class StudentFactory {
    public static BaseStudentDao getStudentDao() {
        return  new OtherStudentDao();// 以后需要继续来解  读取文件中配置 txt
        //return  new StudentDao();
    }
    public static BaseStudentController getStudentController(){
        return  new OtherStudentController();
    }

    public static ITeacherService getTeacherService() {
        return new TeacherService();
    }

    public static ITeacherController getTeacherController() {
        return new TeacherControllerImpl();
    }
}
